package Domain.encoding;
//ruven
import java.nio.charset.Charset;

 public interface Encoder {

         /**
          * To bytes.
          *
          * @param s the s
          *
          * @return the byte[]
          */
         public byte [] toBytes(String s);

         /**
          * From bytes.
          *
          * @param buf the buf
          *
          * @return the string
          */
         public String fromBytes(byte [] buf);

         /**
          * Gets the charset.
          *
          * @return the charset
          */
         public Charset getCharset();
}

